<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 
    JSP Name : jspName.jsp
    Description : 설명을 기술합니다.
    author ETLee
    since 2012. 6. 28.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 6. 28.     ETLee     최초 생성
--%>

<%@ include file="/WEB-INF/jsp/com/include/declare.jspf" %>
<%@ include file="/WEB-INF/jsp/com/include/doctype.jspf" %>
    <div class="boardlist-wrap subsection">
        <div class="list-status-wrap">
    <c:choose>
        <c:when test="${resultList!=null}">
            <p class="list-status">
                <label>
                    <input type="radio" class="check" name="brScn" id="brScn" value="A" checked="checked" onclick="fnListView();"/>
                    전체
                </label>
                <label>
                    <input type="radio" class="check space" name="brScn" id="brScn" value="B" <c:if test="${bizNwrkMgmtSearchVO.brScn == 'B'}">checked="checked"</c:if> onclick="fnListView();"/>
                    지점
                </label>
                <label>
                    <input type="radio" class="check space" name="brScn" id="brScn" value="D" <c:if test="${bizNwrkMgmtSearchVO.brScn == 'D'}">checked="checked"</c:if> onclick="fnListView();"/>
                    대리점
                </label>
            </p>
            <p class="result-status">Page <b><c:out value="${paginationInfo.currentPageNo}"/></b>/<c:out value="${paginationInfo.totalPageCount}"/> &nbsp; &nbsp;<b><c:out value="${paginationInfo.totalRecordCount}"/></b>건의 검색결과가 있습니다.</p>
        </c:when>
        <c:otherwise>
            <p class="result-status">Page <b>0</b>/0 &nbsp; &nbsp;<b>0</b>건의 검색결과가 있습니다.</p>
        </c:otherwise>
    </c:choose>
        </div>
        <table summary="번호, 지점/대리점, 전화번호, 상세정보, 위치, 전시차량, 상담신청">
        <caption>지점 대리점 안내 리스트</caption>
        <colgroup>
            <col width="8%" />
            <col />
            <col width="14%" />
            <col width="13%" />
            <col width="13%" />
            <col width="13%" />
            <col width="13%" />
        </colgroup>
        <thead>
        <tr>
            <th scope="col">NO</th>
            <th scope="col">지점/대리점</th>
            <th scope="col">전화번호</th>
            <th scope="col">상세정보</th>
            <th scope="col">위치</th>
            <th scope="col">전시차량</th>
            <th scope="col">상담신청</th>
        </tr>
        </thead>
        <tbody>
    <c:choose>
        <c:when test="${paginationInfo.totalRecordCount > 0}">
    <c:set var="rowNum" value="${ paginationInfo.totalRecordCount - (paginationInfo.currentPageNo-1)* paginationInfo.pageSize}" />
    <c:forEach var="result" items="${ resultList }" varStatus="status">
        <tr>
            <td class="num">${ rowNum - status.index }</td>
            <td>
                <c:out value="${result.brNm}"/> <c:out value="${result.brScnNm}"/>
            </td>
            <td><c:out value="${result.brCcpc}"/></td>
            <td class="center">
                <a href="javascript:fnView('<c:out value="${ result.brCd }"/>','<c:out value="${ result.brScn }"/>', '0', '');"><img src="/kr/images/common/icon/icon_document.gif" alt="상세정보링크" /></a>
            </td>
            <td class="center">
                <a href="javascript:fnView('<c:out value="${ result.brCd }"/>','<c:out value="${ result.brScn }"/>', '2', '');"><img src="/kr/images/common/icon/icon_location.gif" alt="위치링크" /></a>
            </td>
            <td class="center">
                <a href="javascript:fnView('<c:out value="${ result.brCd }"/>','<c:out value="${ result.brScn }"/>', '0', '');"><img src="/kr/images/common/icon/icon_car02.gif" alt="전시차량링크" /></a>
            </td>
            <td class="center">
                <a href="javascript:fnView('<c:out value="${ result.brCd }"/>','<c:out value="${ result.brScn }"/>', '1', '','<c:out value="${result.brNm}"/>');"><img src="/kr/images/common/icon/icon_application.gif" alt="상담신청링크" /></a>
            </td>
        </tr>
    </c:forEach>
        </c:when>
        <c:otherwise>
        <tr>
            <td class="center" colspan="7">
                검색된 결과가 없습니다.
            </td>
        </tr>
        </c:otherwise>
    </c:choose>
        </tbody>
        </table>
    </div>
    <c:if test="${ paginationInfo.totalRecordCount > 0 }">
        <div class="paging">
            <able:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="fnLinkPage" />
        </div>
    </c:if>
<!--     <div class="paging"> -->
<!--         <a href="#"><img src="/kr/images/common/button/btn_prev.gif" alt="이전" /></a> -->
<!--         <span class="num"> -->
<!--             <a href="#" class="on">1</a> -->
<!--             <a href="#">2</a> -->
<!--             <a href="#">3</a> -->
<!--             <a href="#">4</a> -->
<!--             <a href="#">5</a> -->
<!--             <a href="#">6</a> -->
<!--             <a href="#">7</a> -->
<!--             <a href="#">8</a> -->
<!--             <a href="#">9</a> -->
<!--             <a href="#">10</a> -->
<!--         </span> -->
<!--         <a href="#"><img src="/kr/images/common/button/btn_next.gif" alt="다음" /></a> -->
<!--     </div>	 -->
